package com.leoman.service;

import com.leoman.entity.UserBuyRecord;
import com.leoman.service.common.ICommonService;
import org.springframework.data.domain.Page;

/**
 * UserBuyRecordService
 * Created by 涂奕恒 on 2017/1/10 0010 15:31.
 */
public interface UserBuyRecordService extends ICommonService<UserBuyRecord> {

    /**
     * 根据条件查询用户购买记录
     */
    Page<UserBuyRecord> pageByParams(String nickName, String num, String startTime, String endTime, Integer pageNum, Integer pageSize);

    // 删除对象的所有购买记录信息
    Integer deleteAllInfo(Integer sourceId, Integer sourceType);
}